Skip to content

Conversation

@tengu-alt
Copy link

@tengu-alt tengu-alt commented Feb 3, 2026

This PR upgrades jersey libraries family from 2.39.1 to 2.46 to address CVE-2025-12383

Note: while 2.39.1 is not listed as vulnerable - security scanners still may alert it as vulnerable

Reviewers: PoAn Yang payang@apache.org, Gaurav Narula gaurav_narula2@apple.com, Chia-Ping Tsai chia7712@gmail.com

@tengu-alt
Copy link
Author

@FrankYang0529 Could you please take a look or ping someone to review this?
It would be nice to include this in the future 3.9.2 release (I assume it is upcoming since the release candidate is presented)

@FrankYang0529
Copy link
Member

@tengu-alt Thanks for the fix. We will take a look to check whether to include this in 3.9.2.

@chia7712
Copy link
Member

chia7712 commented Feb 4, 2026

The CVE is regarding eclipse-ee4j/jersey#5749, and the patch was NOT merged into 2.39.1. Hence, I think Kafka 3.9.2 is NOT affected by CVE-2025-12383

@tengu-alt @FrankYang0529 WDYT?

javassist: "3.29.2-GA",
jetty: "9.4.57.v20241219",
jersey: "2.39.1",
jersey: "2.46",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious why 2.46 and not 2.47 when that's the latest released 2.x version?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @gaurav-narula. Let's update to 2.47. @tengu-alt could you update this? So I can run the next release.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tengu-alt could you update this?

Sure, I'll do it

@gaurav-narula
Copy link
Contributor

gaurav-narula commented Feb 4, 2026

@chia7712 https://gitlab.eclipse.org/security/vulnerability-reports/-/issues/253 mentions a reproducer for the CVE is at https://github.com/dtbaum/jerseyCveCandidate. I was able to reproduce it with 2.39.1 as well using that repo by editing pom.xml to update the version and replacing jakarta.* imports with javax.* in JerseyCveCandidate.java.

@chia7712
Copy link
Member

chia7712 commented Feb 4, 2026

@gaurav-narula thanks for the verification. I'm wondering whether it is the same issue, since PRs mentioned by the CVE is unrelated to 2.39.1

@gaurav-narula
Copy link
Contributor

@gaurav-narula thanks for the verification. I'm wondering whether it is the same issue, since PRs mentioned by the CVE is unrelated to 2.39.1

I'm fairly certain it's the same issue as the PoC is asserting the same CVE and it's reproducible in 2.39.1. Here's the trail I could find:

@chia7712
Copy link
Member

chia7712 commented Feb 4, 2026

@gaurav-narula thanks for the info

@FrankYang0529 it seems we need to cut another RC

@yeikel
Copy link
Contributor

yeikel commented Feb 5, 2026

Does this mean that the CVE data is just wrong?

I ask because CVE-2025-12383 only references 2.45, 3.0.16, 3.1.9

@gaurav-narula
Copy link
Contributor

Does this mean that the CVE data is just wrong?

I ask because CVE-2025-12383 only references 2.45, 3.0.16, 3.1.9

I think the issue exists in releases where either of the following conditions hold:

  1. eclipse-ee4j/jersey@d4a0612 is not merged, so < 2.41, < 3.0.12, < 3.1.4 OR
  2. eclipse-ee4j/jersey@425bc88 is merged without eclipse-ee4j/jersey@b2c7ba6, so =3.0.16 and =3.1.9

Releases between (1) and (2) would suffer from the perf degradation mentioned in eclipse-ee4j/jersey#5738. Once again, I'm basing this off of the PoC to reproduce the issue at https://github.com/dtbaum/jerseyCveCandidate.

It would be nice to get a confirmation from jersey developers on this. I'll need some approvals (and hence time) to be able to participate in discussions at https://gitlab.eclipse.org/security/cve-assignment/-/issues/74. In the mean time, I agree we should get another RC going for 3.9.2 with the version bumped.

@tengu-alt tengu-alt force-pushed the upgrade-jersey-libraries branch from f8c7bd4 to de7e806 Compare February 5, 2026 10:12
@tengu-alt
Copy link
Author

@FrankYang0529 @gaurav-narula , I've updated PR with 2.47

@tengu-alt
Copy link
Author

BTW, also want to add that vulnerability comes from the HttpUrlConnector class, which causes a Race Condition as it said here: https://security.snyk.io/vuln/SNYK-JAVA-ORGGLASSFISHJERSEYCORE-14049172
And according to https://security.snyk.io/package/maven/org.glassfish.jersey.core%3Ajersey-client/2.39.1 a similar Race Condition appears in 2.39.1 , and the resolved versions are the same as for the CVE-2025-12383

@chia7712 chia7712 changed the title Upgrade jersey libraries to address CVE-2025-12383 MINOR: Upgrade jersey libraries to address CVE-2025-12383 Feb 5, 2026
@tengu-alt
Copy link
Author

sorry didn't see the approve, thank you

@FrankYang0529
Copy link
Member

@tengu-alt It's ok. Let's wait for the CI result.

@chia7712 chia7712 merged commit 0757155 into apache:3.9 Feb 6, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants